import {showtoast} from './utils/extendapi'
import {showmodel} from './utils/extendapi'
import {setstorage} from './utils/storage'
import {asyncsetstorage} from './utils/storage'
import {requserinfo} from './api/user'
import {userstore} from './store/userstore'
App({
  isorderpay:false,
  flag:false,
  appgoodlist:[],
  temptaddress:{},
  cartid:0,
  editaddressitem:{},
  addressid:-1,
  onedit:false,
  async onShow(){
    // showtoast()
    // wx.toast()
  //  const res= await showmodel()
  //  console.log(res);
  // asyncsetstorage("a","a").then((res)=>{
  //   console.log(res.data);
  // })
 const res=await requserinfo()
 userstore.setuserinfo(res.data.userinfo)
  }
})
